package cn.kgc.service;

import cn.kgc.pojo.Client;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientService {
    int ClientUpdate(Client client);
    Client getById(@Param("clientId")Integer clientId);
    Client getByName(@Param("clientName")String clientName);
    int ClientDelete(@Param("clientId")Integer clientId);
    int ClientAdd(Client client);
    int ClientAdd1(@Param("phone") String phone,@Param("idCard")String idCard,@Param("clientName")String clientName);
    int getToalCount(@Param("clientName")String clientName);
    List<Client> getClientList(@Param("currenPage")Integer currenPage,@Param("clientName")String clientName, @Param("limit") Integer limit);
}
